home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
36
/
dvbg.zip
/
BG.SHR
< prev
Wrap
Text File
|
1989-04-18
|
2KB
|
50 lines
; Version 4/18/89
; BG is written by David Page, Fidonet 109/104 (109/20). I hereby contribute
; this code to the public domain. It is guaranteed to do nothing but take up
; a rather small amount of disk space; use at your own risk. On my machine,
; it does a nice job.
; BG.bin is designed to be used as a "shared program" in DESQview. I wrote
; it for the exercise; it has no real advantage over running BG.COM in a
; batch file. When placed in the "shared program" line of a DESQview PIF
; file, it will make the window opened by that PIF go to background, but
; unfortunately, only AFTER the window has been opened on the display.
; This program will not run without DESQview, and since it is not even a
; loadable program, it doesn't bother to test. Somehow exectuted without DV
; (DOS won't try with this extension), it WILL crash the machine.
include dvapi.inc
bg segment public 'code'
assume cs:bg
org 0 ; this is a binary
entry proc far
jcxz init ; if init call, jump to it
ret ; do nothing on termination
msg db 1bh,10h ; signify manager stream
dw strml ; length of stream without prefix
strm db 0c9h ; window stream to make background
msgl equ $-msg ; length of msg
strml equ $-strm ; length of actual stream without prefix
init:
lea si,cs:msg ; address of msg
push cs ; the address is CS, not DS based
push si ; and push the offset address
mov cx,msgl ; put length of message in cx
xor dx,dx ; zero dx
push dx ;
push cx ; push length of message
@send write,me ; macro to send message to current window
clc ; clear carry, so that success is signaled
ret 12 ; return, with PASCAL convention!
endp entry ; end of procedure
bg ends
end